package com.xc.h05.mapper;

import com.github.pagehelper.PageInfo;
import com.xc.h05.entity.Mytest;
import com.xc.h05.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 30658
* @description 针对表【mytest】的数据库操作Mapper
* @createDate 2025-03-07 19:54:45
* @Entity com.xc.h05.entity.Mytest
*/
@Mapper
public interface MytestMapper {

    //增
    int add(Mytest mytest);
    //删
    int delete(int id);
    //批量删除
    int deletes(List list);
    //改
    int update(Mytest mytest);
    //根据**分页查询
    List<Mytest> findByPage(Mytest mytest);
    // 根据用户昵称分页查询（级联查询）
    List<Mytest> findByNicknamePage(Mytest mytest);
    // 根据testId查询
    List<Mytest> findByTestId(int testId);
    //查
    List<Mytest> findAll();
    // 根据testId查询
    List<Integer> findByTestId1(int testId);
}
